package savingsaccount;

public class SavingsAccount {
    public static double annualInterestRate = 0.06;
    private double savingsBalance;
    SavingsAccount(double money){
        savingsBalance = money;
    }
    double calculateMonthlyInterest(){
        double monthly_interest = savingsBalance * annualInterestRate / 12;
        savingsBalance += monthly_interest;
        return monthly_interest;
    }
    void modifyInterestRate(double rate){
        annualInterestRate = rate;
    }
}
